'''
Created on Jan 9, 2010

@author: berin
'''
import pygame

class SurfaceGrid(object):
	'''
	represents a base grid
	'''


	def __init__(self, width, height, xPosition, yPosition, tileset):
		'''
		Constructor
		'''
		self.width = width
		self.height = height
		self.xPosition = xPosition
		self.yPosition = yPosition
		self.tileset = tileset
		self.hasMouseFocus = False
		self.mainSurface = None

		
	def draw(self):
		'''
		Do drawing stuff here
		'''
		self.mainSurface.fill((255,255,255))
		
	def surface_moveY(self, number):
		self.yPosition = self.yPosition + number
		
	def surface_moveX(self, number):
		self.xPosition = self.xPosition + number
		
	def draw_one_rect(self, surface):
		pygame.draw.rect(self.mainSurface, (255,0,0), surface, 1)